﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KendoMvcUI.Core;
using KendoMvcUI.Common;

namespace KendoMvcUI.UI
{
    public class Paper
    {
    }
    public class PagerSettings : KendoBindingBase
    {
        public PagerSettings()
            : base("kendoPager")
        { }
        public bool? AutoBind { get; set; }
        /// <summary>
        /// default:10
        /// </summary>
        public int? ButtonCount { get; set; }
        public string SelectTemplate { get; set; }
        public string LinkTemplate { get; set; }
        /// <summary>
        /// Defines if a label showing current paging information will be displayed.
        /// </summary>
        public bool? Info { get; set; }
        /// <summary>
        /// Defines if an input element which allows 
        /// the user to navigate to given page will be displayed.
        /// </summary>
        public bool? Input { get; set; }
        public bool? Numeric { get; set; }
        /// <summary>
        /// Displays a list with predefined page sizes. 
        /// An array of values to be displayed can be provided. 
        /// If pageSize option is provided for DataSource then this pageSize 
        /// value will be automatically selected in created selectbox.
        /// </summary>
        public List<int> PageSizes { get; set; }
        public bool? PreviousNext { get; set; }
        public bool? Refresh { get; set; }
        /// <summary>
        /// Defines texts shown within the pager. 
        /// Use this option to customize or localize the pager messages.
        /// </summary>
        public class Message
        {
            /// <summary>
            /// default: "{0} - {1} of {2} items"
            /// Contains three placeholders:
            ///{0} - the first data item index
            //{1} - the last data item index
            ///{2} - the total number of data items
            /// </summary>
            public string Display { get; set; }
            /// <summary>
            /// default: "No items to display"
            /// </summary>
            public string Empty { get; set; }
            public string Page { get; set; }
            /// <summary>
            /// default: "of {0}"
            /// </summary>
            public string Of { get; set; }
            /// <summary>
            /// The label displayed after the page size DropDownList.
            /// default: "items per page"
            /// </summary>
            public string ItemsPerPage { get; set; }
            /// <summary>
            /// default: "Go to the first page"
            /// </summary>
            public string First { get; set; }
            /// <summary>
            /// default: "Go to the previous page"
            /// </summary>
            public string Previous { get; set; }
            /// <summary>
            /// default: "Go to the next page"
            /// </summary>
            public string Next { get; set; }
            /// <summary>
            /// default: "Go to the last page"
            /// </summary>
            public string Last { get; set; }
            /// <summary>
            /// default: "Refresh"
            /// </summary>
            public string Refresh { get; set; }

        }
    }
}
